package typejump.objects;

import typejump.engine.GameEngine;

public class MessageSpot extends Hotspot {

	private String message = "";
	private int mx = 0;
	private int my = 0;
	
	private Object id = null;
	
	@Override
	public void onEnter(GameObject enter) {
		id = GameEngine.showMessage(message, mx, my);
	}

	@Override
	public void onExit(GameObject exit) {
		GameEngine.hideMessage(id);
	}
	
	public String getMessage() 
	{ return message; }
	
	public void setMessage(String message) 
	{ this.message = message; }
	
	public int getMessageX() 		{ return mx; }
	public int getMessageY() 		{ return my; }
	
	public void setMessageX(int x) 	{ this.mx = x; }
	public void setMessageY(int y) 	{ this.my = y; }
}
